
.qa-panel {
    max-width: 700px;
    min-width: 20rem;
    margin: 50px auto;
    padding: 30px;
    background-color: #f9fafb;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.title {
    font-size: 1.5rem;
    color: #1f2937;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.textarea {
    width: calc(100% - 24px);
    /* 考虑 padding */
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #d1d5db;
    /* 灰色边框 */
    border-radius: 8px;
    /* 圆角 */
    min-height: 100px;
    resize: vertical;
    font-family: 'Inter', sans-serif;
    /* 确保 textarea 也使用 Inter 字体 */
}

.button {
    padding: 12px 20px;
    font-size: 1rem;
    color: white;
    background-color: #3b82f6;
    /* 蓝色 */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    font-weight: 500;
}

.button:hover {
    background-color: #2563eb;
    /* 深蓝色 */
}

.button:disabled {
    background-color: #9ca3af;
    /* 禁用时的灰色 */
    cursor: not-allowed;
}

.answerSection {
    margin-top: 20px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.answerTitle {
    font-size: 1.5rem;
    color: #111827;
    margin-bottom: 10px;
    font-weight: 500;
}

.answerText {
    font-size: 1rem;
    color: #374151;
    white-space: pre-wrap;
    text-align: left;
    line-height: 1.6;
}

.loadingText {
    font-size: 1rem;
    color: #6b7280;
    text-align: center;
    padding: 10px 0;
}

.errorText {
    font-size: 1rem;
    color: #ef4444;
    background-color: #fee2e2;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #fca5a5;
}